package com.casic.ops.entity.domain.pipeline;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * 流水线节点类型
 * @author cww
 * @date 2022/6/17
 */
@Data
@TableName("pipeline_node_template")
public class PipelineNodeTemplateDO {

    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;

    /**
     * uuid
     */
    @TableField("uuid")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private long uuid;

    /**
     * parent_uuid
     */
    @TableField("parent_uuid")
    private long parentUuid;

    /**
     * name
     */
    @TableField("name")
    private String name;

    /**
     * label
     */
    @TableField("label")
    private String label;

    /**
     * nod_description
     */
    @TableField("nod_description")
    private String nodeDescription;

    /**
     * icon
     */
    @TableField("icon")
    private String icon;

    /**
     * view
     */
    @TableField("view")
    private Integer view;

    /**
     * type
     */
    @TableField("type")
    private Integer type;

    /**
     * creator
     */
    @TableField("creator")
    private String creator;

    /**
     * modifier
     */
    @TableField("modifier")
    private String modifier;

    /**
     * gmt_create
     */
    @TableField("gmt_create")
    private Date gmtCreate;

    /**
     * gmt_modified
     */
    @TableField("gmt_modified")
    private Date gmtModified;

    /**
     * deleted
     */
    @TableLogic(delval = "0",value = "1")
    private String deleted;

}
